import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const finance: AppRouteModule = {
  path: '/finance',
  name: 'Finance',
  component: LAYOUT,
  redirect: '/finance/index',
  meta: {
    orderNo: 70,
    icon: 'ion:logo-usd',
    title: '财务管理',
  },
  children: [
    {
      path: 'index',
      name: 'FinanceIndex',
      component: () => import('/@/views/finance/index.vue'),
      meta: {
        title: '绑定收款信息',
      },
    },
    {
      path: 'withdrawal',
      name: 'FinanceWithdrawal',
      component: () => import('/@/views/finance/withdrawal.vue'),
      meta: {
        title: '申请提现管理',
      },
    },
    {
      path: 'recharge',
      name: 'FinanceRecharge',
      component: () => import('/@/views/finance/recharge.vue'),
      meta: {
        title: '余额充值记录',
      },
    },
    {
      path: 'transfer',
      name: 'FinanceTransfer',
      component: () => import('/@/views/finance/transfer.vue'),
      meta: {
        title: '余额互转记录',
      },
    },
  ],
};

export default finance;
